package com.coincalf.dto;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.util.Date;


/**
 * 代理商成交订单
 * @author qiang
 */
@Data
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
public class ForexDealOrderDTO {

    /**ID*/
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;
    /**交易对ID*/
    @JsonSerialize(using = ToStringSerializer.class)
    private Long marketId;
    /**用户ID*/
    @JsonSerialize(using = ToStringSerializer.class)
    private Long userId;
    /**币种ID*/
    @JsonSerialize(using = ToStringSerializer.class)
    private Long coinId;
    /**订单ID*/
    @JsonSerialize(using = ToStringSerializer.class)
    private Long orderId;
    /**委托价格*/
    private BigDecimal entrustPrice;
    /**委托费率*/
    private BigDecimal entrustFeerate;
    /**委托数量*/
    private BigDecimal entrustNum;
    /**成交金额*/
    private BigDecimal turnoverAmount;
    /**成交价格*/
    private BigDecimal turnoverPrice;
    /**成交数量*/
    private BigDecimal turnoverNum;
    /**成交ID*/
    private BigDecimal turnoverOrderid;
    /**成交手续费*/
    private BigDecimal turnoverFee;
    /**成交手续费率*/
    private BigDecimal turnoverFeerate;
    /**成交状态*/
    private Integer turnoverStatus;
    /**成交时间*/
    private Date createTime;
    /**交易账户*/
    private String userName;
    /**操作ID*/
    private String typeId;
    /**操作描述*/
    private String typeDesc;
    /**上级*/
    private String parentName;
    /**当前价格*/
    private BigDecimal currentPrice;
}
